package com.ff.xyh.feign.client.userfront;

import com.ff.xyh.common.entity.userfront.UserFavorite;
import com.ff.xyh.common.entity.result.ResultObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther FF
 * @Date 2022年 11月 15日
 * @Time 18:02
 */

@FeignClient(value = "service-user-front", contextId = "UserFavoriteClient")
@RequestMapping("/front-user")
public interface UserFavoriteClient {

    /**
     * 用户收藏
     */
    @RequestMapping("insert-user-favorite")
    ResultObject insertUserFavorite(UserFavorite userFavorite) ;

    @RequestMapping("delete-user-favorite")
    ResultObject deleteUserFavorite(
            @RequestParam(name = "id") String id,
            @RequestParam(name = "postId") String postId,
            @RequestParam(name = "postType") String postType );

    @RequestMapping("delete-user-favorite-id")
    ResultObject deleteUserFavoriteById(
            @RequestParam(name = "id") String id );


}
